package com.bw.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bw.bean.Classes;
import com.bw.bean.StudentVo;
import com.bw.bean.Teachers;
import com.bw.dao.InterviewDao;
import com.bw.dao.TeachersDao;
import com.bw.service.TeachersService;
@Service
public class TeachersServiceImpl implements TeachersService {
	@Autowired
	InterviewDao interviewDaoImpl;
	@Autowired
	TeachersDao teachersDao;

	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insert(Teachers record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insertSelective(Teachers record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public Teachers selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	public int updateByPrimaryKeySelective(Teachers record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(Teachers record) {
		// TODO Auto-generated method stub
		return 0;
	}


	public Teachers getTeacherMessage(int i,String name) {
		// TODO Auto-generated method stub
		return teachersDao.getTeacherMessage(i,name);
	}

	public List<Teachers> list() {
		// TODO Auto-generated method stub
		return teachersDao.list();
	}

	public List<Classes> getClasses(Integer id) {
		// TODO Auto-generated method stub
		return teachersDao.getClasses(id);
	}

	public List<StudentVo> getStudents(int c, String today, String tomorrow) {
		// TODO Auto-generated method stub
		return interviewDaoImpl.getStudents(c, today, tomorrow);
	}

	public Teachers login(Teachers teacher) {
		// TODO Auto-generated method stub
		return teachersDao.login(teacher);
	}

	public List<StudentVo> getOtherStudents(int cid, String tname, String sname, String today, String tomorrow) {
		// TODO Auto-generated method stub
		return interviewDaoImpl.getStudentAll(cid, tname, sname, today, tomorrow);
	}

	

}
